package com.mss.media.enumeration;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum EmailCode implements IEnum<Integer> {

    /**
     * 注册
     */
    REGISTER(0,"注册"),
    /**
     * 登录
     */
    LOGIN(1,"登录"),

    ADDRESS(2,"106.55.1.191");

    private final Integer code;
    private final String desc;

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
